set(sources 
common.h
xfce4-popup-clipman.c
)

set(progname
"xfce4-popup-clipman"
)

INCLUDE(FindPkgConfig)

pkg_check_modules(GDKX REQUIRED gdk-x11-2.0)
pkg_check_modules(X11 REQUIRED x11)
pkg_check_modules(GTK REQUIRED gtk+-2.0)

include_directories(
${progname}
${GTK_INCLUDE_DIRS} 
${GDKX_INCLUDE_DIRS}
)

link_directories(
${progname}
${GTK_INCLUDE_DIRS} 
${GDKX_INCLUDE_DIRS}
) 

add_executable(${progname} ${sources})

target_link_libraries(
${progname}
${GTK_LIBRARIES}
${GDKX_LIBRARIES}
)

install (TARGETS ${progname} RUNTIME DESTINATION ./)
